package com.example.asynctaskdemo.okhttp;

import okhttp3.OkHttpClient;

import java.util.concurrent.TimeUnit;

/**
 * Created by Kellan.hu on 2016/10/21.
 */
public class OkHttpUtil {
    public static OkHttpClient getClient() {
        OkHttpClient client = new OkHttpClient.Builder()
                .connectTimeout(10, TimeUnit.SECONDS)//设置连接超时时间
                .build();
        return client;
    }


}
